import java.util.*;
public class list {
	public static void main (String []args){
		
		List<Integer> arr1=Arrays.asList(10,12,45,5,72,9);
		List<Integer> arr2=Arrays.asList(0,2,5,3,9,1,7,8);
		Collections.reverse(arr1);
		System.out.println(arr1);
		Collections.reverse(arr2);
		System.out.println(arr2 );
	}
	
}
